$(function () {
  var body = document.getElementsByTagName('body')[0];
  if (body.id === 'news') {
    var newsSwiper = new Swiper('.newsSwiper',{
      direction: 'vertical',
      loop: false,
      // 响应鼠标滚轮
      mousewheel: true,
      // 如果需要分页器
      pagination: {
        el: '.swiper-pagination',
        clickable :true,
      }
    });
    var newsInfo = $('.newsInfo');
    var showInfo = $('.showInfo');
    var closeMask = $('.closeMask');
    showInfo.on('click',function () {
      newsInfo.css('display','block');
    })
    closeMask.on('click',function () {
      newsInfo.css('display','none');
    })
  }
})
